/*jadclipse*/// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.

package nc.ui.so.so002;

import java.awt.*;
import java.awt.event.*;
import java.io.PrintStream;
import java.util.*;
import javax.swing.JPanel;
import javax.swing.JRootPane;
import nc.ui.ml.NCLangRes;
import nc.ui.pub.ClientEnvironment;
import nc.ui.pub.beans.*;
import nc.ui.pub.bill.*;
import nc.ui.pub.para.SysInitBO_Client;
import nc.ui.pub.pf.IinitData2;
import nc.ui.so.pub.InvoiceOutToTxt;
import nc.vo.bd.CorpVO;
import nc.vo.pub.bill.BillTempletVO;
import nc.vo.pub.lang.UFBoolean;
import nc.vo.pub.lang.UFDouble;
import nc.vo.scm.pub.smart.ObjectUtils;
import nc.vo.so.so002.*;

// Referenced classes of package nc.ui.so.so002:
//            SaleInvoiceListPanel, SaleinvoiceBO_Client

public class TransTaxDLG extends UIDialog
    implements ActionListener, IinitData2, KeyListener
{

    private UILabel getLbAudit()
    {
        if(lbAudit == null)
        {
            lbAudit = new UILabel();
            lbAudit.setText("\u5BA1\u6838\u4EBA");
            lbAudit.setMinimumSize(new Dimension(60, 17));
            lbAudit.setPreferredSize(new Dimension(60, 17));
            lbAudit.setMaximumSize(new Dimension(60, 17));
        }
        return lbAudit;
    }

    private UILabel getLbPay()
    {
        if(lbPay == null)
        {
            lbPay = new UILabel();
            lbPay.setText("\u6536\u6B3E\u4EBA");
            lbPay.setMinimumSize(new Dimension(60, 17));
            lbPay.setPreferredSize(new Dimension(60, 17));
            lbPay.setMaximumSize(new Dimension(60, 17));
        }
        return lbPay;
    }

    private UIRefPane getRefAudit()
    {
        if(rpAudit == null)
        {
            rpAudit = new UIRefPane();
            rpAudit.setRefNodeName("\u64CD\u4F5C\u5458");
            rpAudit.setMinimumSize(new Dimension(80, 17));
            rpAudit.setPreferredSize(new Dimension(80, 17));
            rpAudit.setMaximumSize(new Dimension(80, 17));
        }
        return rpAudit;
    }

    private UIRefPane getRefPay()
    {
        if(rpPay == null)
        {
            rpPay = new UIRefPane();
            rpPay.setRefNodeName("\u64CD\u4F5C\u5458");
            rpPay.setMinimumSize(new Dimension(80, 17));
            rpPay.setPreferredSize(new Dimension(80, 17));
            rpPay.setMaximumSize(new Dimension(80, 17));
        }
        return rpPay;
    }

    public TransTaxDLG()
    {
        m_btToTax = null;
        ivjUIDialogContentPane = null;
        m_pnlTransTax = null;
        saleIVOs = null;
        ivjUICheckBox = null;
        ivjBillListPanel = null;
        listHeadItems = null;
        ivjBillCardPanel = null;
        m_bd = null;
        ivjUIButtonAllSelect = null;
        ivjUIButtonAllCancel = null;
        SA_02 = null;
        BD505 = null;
        hsparas = null;
        ce = ClientEnvironment.getInstance();
        UICheckBox = null;
        bCombinByInv = new UFBoolean(false);
        lbAudit = null;
        lbPay = null;
        rpAudit = null;
        rpPay = null;
        initialize();
    }

    public TransTaxDLG(Container parent)
    {
        super(parent, "\u4F20\u91D1\u7A0E");
        m_btToTax = null;
        ivjUIDialogContentPane = null;
        m_pnlTransTax = null;
        saleIVOs = null;
        ivjUICheckBox = null;
        ivjBillListPanel = null;
        listHeadItems = null;
        ivjBillCardPanel = null;
        m_bd = null;
        ivjUIButtonAllSelect = null;
        ivjUIButtonAllCancel = null;
        SA_02 = null;
        BD505 = null;
        hsparas = null;
        ce = ClientEnvironment.getInstance();
        UICheckBox = null;
        bCombinByInv = new UFBoolean(false);
        lbAudit = null;
        lbPay = null;
        rpAudit = null;
        rpPay = null;
        initialize();
    }

    public TransTaxDLG(Container parent, String title)
    {
        super(parent, title != null ? title : "\u4F20\u91D1\u7A0E");
        m_btToTax = null;
        ivjUIDialogContentPane = null;
        m_pnlTransTax = null;
        saleIVOs = null;
        ivjUICheckBox = null;
        ivjBillListPanel = null;
        listHeadItems = null;
        ivjBillCardPanel = null;
        m_bd = null;
        ivjUIButtonAllSelect = null;
        ivjUIButtonAllCancel = null;
        SA_02 = null;
        BD505 = null;
        hsparas = null;
        ce = ClientEnvironment.getInstance();
        UICheckBox = null;
        bCombinByInv = new UFBoolean(false);
        lbAudit = null;
        lbPay = null;
        rpAudit = null;
        rpPay = null;
    }

    public TransTaxDLG(Frame owner)
    {
        super(owner, "\u4F20\u91D1\u7A0E");
        m_btToTax = null;
        ivjUIDialogContentPane = null;
        m_pnlTransTax = null;
        saleIVOs = null;
        ivjUICheckBox = null;
        ivjBillListPanel = null;
        listHeadItems = null;
        ivjBillCardPanel = null;
        m_bd = null;
        ivjUIButtonAllSelect = null;
        ivjUIButtonAllCancel = null;
        SA_02 = null;
        BD505 = null;
        hsparas = null;
        ce = ClientEnvironment.getInstance();
        UICheckBox = null;
        bCombinByInv = new UFBoolean(false);
        lbAudit = null;
        lbPay = null;
        rpAudit = null;
        rpPay = null;
    }

    public TransTaxDLG(Frame owner, String title)
    {
        super(owner, title != null ? title : "\u4F20\u91D1\u7A0E");
        m_btToTax = null;
        ivjUIDialogContentPane = null;
        m_pnlTransTax = null;
        saleIVOs = null;
        ivjUICheckBox = null;
        ivjBillListPanel = null;
        listHeadItems = null;
        ivjBillCardPanel = null;
        m_bd = null;
        ivjUIButtonAllSelect = null;
        ivjUIButtonAllCancel = null;
        SA_02 = null;
        BD505 = null;
        hsparas = null;
        ce = ClientEnvironment.getInstance();
        UICheckBox = null;
        bCombinByInv = new UFBoolean(false);
        lbAudit = null;
        lbPay = null;
        rpAudit = null;
        rpPay = null;
    }

    public void actionPerformed(ActionEvent e)
    {
        if(e.getSource() == getButtonToTax())
        {
            InvoiceOutToTxt invoiceOTT = new InvoiceOutToTxt();
            invoiceOTT.outputInvoice(getSaleIVO(), isUseViaNum(), rpAudit.getRefName(), rpPay.getRefName());
        } else
        if(e.getSource() == getUIButtonAllSelect())
            onAllSelect(e);
        else
        if(e.getSource() == getUIButtonAllCancel())
            onAllCancel(e);
    }

    protected BillCardPanel getBillCardPanel()
    {
        if(ivjBillCardPanel == null)
            try
            {
                ivjBillCardPanel = new BillCardPanel();
                ivjBillCardPanel.setName("BillCardPanel");
                ivjBillCardPanel.setAlignmentX(0.0F);
                ivjBillCardPanel.setAlignmentY(0.0F);
                BillTempletVO btv = getTempletVO();
                m_bd = new BillData(btv);
                ivjBillCardPanel.setBillData(m_bd);
                ivjBillCardPanel.setBodyMenuShow(false);
            }
            catch(Throwable ivjExc)
            {
                handleException(ivjExc);
            }
        return ivjBillCardPanel;
    }

    private SaleInvoiceListPanel getBillListPanel()
    {
        if(ivjBillListPanel == null)
            try
            {
                ivjBillListPanel = new SaleInvoiceListPanel();
                ivjBillListPanel.setName("BillListPanel");
                ivjBillListPanel.setBillType("32");
                ivjBillListPanel.setCorp(m_corppk);
                ivjBillListPanel.setOperator(m_userid);
                ivjBillListPanel.updateUI();
            }
            catch(Throwable ivjExc)
            {
                handleException(ivjExc);
            }
        return ivjBillListPanel;
    }

    public SaleinvoiceVO[] getSaleIVO()
    {
        if(getUICheckBox2().isSelected())
            bCombinByInv = new UFBoolean(true);
        else
            bCombinByInv = new UFBoolean(false);
        ArrayList hvosArray = new ArrayList();
        SaleinvoiceVO saleinvoices[] = new SaleinvoiceVO[getBillCardPanel().getRowCount()];
        for(int i = 0; i < getBillCardPanel().getRowCount(); i++)
        {
            try
            {
                saleinvoices[i] = (SaleinvoiceVO)ObjectUtils.serializableClone(saleIVOs[i]);
            }
            catch(Exception e)
            {
                e.printStackTrace();
            }
            if(getBillCardPanel().getBodyValueAt(i, "bselected") == null)
                continue;
            boolean bSelect = ((Boolean)getBillCardPanel().getBodyValueAt(i, "bselected")).booleanValue();
            if(bSelect)
                hvosArray.add(saleinvoices[i]);
        }

        SaleinvoiceVO selectedHvos[] = new SaleinvoiceVO[hvosArray.size()];
        hvosArray.toArray(selectedHvos);
        if(bCombinByInv.booleanValue())
        {
            for(int i = 0; i < selectedHvos.length; i++)
            {
                SaleinvoiceBVO bodys[] = (SaleinvoiceBVO[])(SaleinvoiceBVO[])selectedHvos[i].getChildrenVO();
                Hashtable hsBody = new Hashtable();
                for(int j = 0; j < bodys.length; j++)
                {
                    String cinventoryid = bodys[j].getCinventoryid();
                    SaleinvoiceBVO body = bodys[j];
                    if(!hsBody.containsKey(cinventoryid))
                    {
                        hsBody.put(cinventoryid, body);
                    } else
                    {
                        SaleinvoiceBVO alreadyBody = (SaleinvoiceBVO)hsBody.get(cinventoryid);
                        body.setNnumber(body.getNnumber().add(alreadyBody.getNnumber()));
                        body.setNoriginalcursummny(body.getNoriginalcursummny().add(alreadyBody.getNoriginalcursummny()));
                        body.setNoriginalcurdiscountmny(body.getNoriginalcurdiscountmny().add(alreadyBody.getNoriginalcurdiscountmny()));
                        body.setNoriginalcurtaxmny(body.getNoriginalcurtaxmny().add(alreadyBody.getNoriginalcurtaxmny()));
                        body.setNoriginalcurmny(body.getNoriginalcurmny().add(alreadyBody.getNoriginalcurmny()));
                        body.setNtaxrate(body.getNoriginalcurtaxmny().multiply(100D).div(body.getNoriginalcurmny()).setScale(2, 4));
                        hsBody.put(cinventoryid, body);
                    }
                }

                Enumeration ebodykeys = hsBody.keys();
                SaleinvoiceBVO newbodys[] = new SaleinvoiceBVO[hsBody.size()];
                int k = 0;
                while(ebodykeys.hasMoreElements()) 
                {
                    String bodykey = ebodykeys.nextElement().toString();
                    newbodys[k++] = (SaleinvoiceBVO)hsBody.get(bodykey);
                }
                selectedHvos[i].setChildrenVO(newbodys);
            }

        }
        return selectedHvos;
    }

    public void getSysPara()
    {
        try
        {
            SA_02 = SysInitBO_Client.getParaBoolean(ce.getCorporation().getPrimaryKey(), "SA02");
            BD505 = SysInitBO_Client.getParaInt(ce.getCorporation().getPrimaryKey(), "BD505");
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
    }

    public BillTempletVO getTempletVO()
    {
        BillTempletVO voBillTemplet = null;
        nc.vo.pub.bill.BillTempletHeadVO voBillTempletHead = null;
        Vector vBillTempletBodyVO = new Vector();
        voBillTemplet = new BillTempletVO(voBillTempletHead, vBillTempletBodyVO);
        return voBillTemplet;
    }

    private UIButton getButtonToTax()
    {
        if(m_btToTax == null)
            try
            {
                m_btToTax = new UIButton();
                m_btToTax.setName("SOtoTax");
                m_btToTax.setText(NCLangRes.getInstance().getStrByID("40060501", "UPP40060501-000141"));
            }
            catch(Throwable ivjExc)
            {
                handleException(ivjExc);
            }
        return m_btToTax;
    }

    private UIButton getUIButtonAllCancel()
    {
        if(ivjUIButtonAllCancel == null)
            try
            {
                ivjUIButtonAllCancel = new UIButton();
                ivjUIButtonAllCancel.setName("UIButtonAllCancel");
                ivjUIButtonAllCancel.setText(NCLangRes.getInstance().getStrByID("common", "UC001-0000042"));
            }
            catch(Throwable ivjExc)
            {
                handleException(ivjExc);
            }
        return ivjUIButtonAllCancel;
    }

    private UIButton getUIButtonAllSelect()
    {
        if(ivjUIButtonAllSelect == null)
            try
            {
                ivjUIButtonAllSelect = new UIButton();
                ivjUIButtonAllSelect.setName("UIButtonRefresh");
                ivjUIButtonAllSelect.setText(NCLangRes.getInstance().getStrByID("common", "UC001-0000041"));
            }
            catch(Throwable ivjExc)
            {
                handleException(ivjExc);
            }
        return ivjUIButtonAllSelect;
    }

    private UICheckBox getUICheckBox()
    {
        if(ivjUICheckBox == null)
            try
            {
                ivjUICheckBox = new UICheckBox();
                ivjUICheckBox.setName("UICheckBox");
                ivjUICheckBox.setText(NCLangRes.getInstance().getStrByID("40060501", "UPP40060501-000142"));
                ivjUICheckBox.setMinimumSize(new Dimension(150, 17));
                ivjUICheckBox.setPreferredSize(new Dimension(150, 17));
                ivjUICheckBox.setMaximumSize(new Dimension(150, 17));
            }
            catch(Throwable ivjExc)
            {
                handleException(ivjExc);
            }
        return ivjUICheckBox;
    }

    private JPanel getUIDialogContentPane()
    {
        if(ivjUIDialogContentPane == null)
            try
            {
                ivjUIDialogContentPane = new JPanel();
                ivjUIDialogContentPane.setName("UIDialogContentPane");
                ivjUIDialogContentPane.setLayout(new BorderLayout());
                getUIDialogContentPane().add(getBillCardPanel(), "Center");
                getUIDialogContentPane().add(getPanelTransTax(), "South");
            }
            catch(Throwable ivjExc)
            {
                handleException(ivjExc);
            }
        return ivjUIDialogContentPane;
    }

    private UIPanel getPanelTransTax()
    {
        if(m_pnlTransTax == null)
            try
            {
                m_pnlTransTax = new UIPanel();
                m_pnlTransTax.setLayout(new FlowLayout());
                m_pnlTransTax.setName("m_pnlTransTax");
                m_pnlTransTax.add(getLbAudit(), null);
                m_pnlTransTax.add(getRefAudit(), null);
                m_pnlTransTax.add(getLbPay(), null);
                m_pnlTransTax.add(getRefPay(), null);
                m_pnlTransTax.add(getUICheckBox(), null);
                m_pnlTransTax.add(getUIButtonAllSelect(), null);
                m_pnlTransTax.add(getUIButtonAllCancel(), null);
                m_pnlTransTax.add(getButtonToTax(), null);
                m_pnlTransTax.add(getButtonToTax(), null);
                
            }
            catch(Throwable ivjExc)
            {
                handleException(ivjExc);
            }
        return m_pnlTransTax;
    }

    private void handleException(Throwable throwable)
    {
    }

    public void initData(Object userObj)
    {
        System.out.println((new StringBuilder()).append("=====================>").append(userObj).toString());
        ArrayList arrayObj = (ArrayList)userObj;
        saleIVOs = (SaleinvoiceVO[])(SaleinvoiceVO[])arrayObj.get(0);
        BD505 = (Integer)arrayObj.get(3);
        SA_02 = (UFBoolean)arrayObj.get(4);
        if(saleIVOs == null || saleIVOs.length == 0)
            return;
        SaleVO headers[] = new SaleVO[saleIVOs.length];
        for(int i = 0; i < saleIVOs.length; i++)
            headers[i] = (SaleVO)saleIVOs[i].getParentVO();

        m_userid = (String)arrayObj.get(1);
        m_corppk = (String)arrayObj.get(2);
        BillListData bd = new BillListData(getBillListPanel().getDefaultTemplet("32", null, m_userid, m_corppk));
        listHeadItems = bd.getHeadBillModel().getBodyItems();
        BillItem newListItems[] = new BillItem[listHeadItems.length + 1];
        newListItems[0] = new BillItem();
        newListItems[0].setKey("bselected");
        newListItems[0].setPos(1);
        newListItems[0].setWidth(80);
        newListItems[0].setRefType("-1");
        newListItems[0].setName(NCLangRes.getInstance().getStrByID("40060501", "UPP40060501-000143"));
        newListItems[0].setEdit(true);
        newListItems[0].setDataType(4);
        newListItems[0].setShow(true);
        newListItems[0].setTableCode(listHeadItems[0].getTableCode());
        newListItems[0].setTableName(listHeadItems[0].getTableName());
        for(int i = 1; i < newListItems.length; i++)
        {
            newListItems[i] = listHeadItems[i - 1];
            if(listHeadItems[i - 1].getKey().trim().equals("cdispatcherid"))
                newListItems[i].setShow(false);
        }

        BillData billdata = new BillData();
        billdata.setBodyItems(newListItems);
        getBillCardPanel().setBillData(billdata);
        setBodyItemsCombox();
        getBillCardPanel().getBillModel().setBodyDataVO(headers);
        setBodyItemsShow();
        getBillCardPanel().updateUI();
        getBillCardPanel().updateValue();
    }

    private void initialize()
    {
        try
        {
            setName("TransTaxDLG");
            setDefaultCloseOperation(2);
            setSize(737, 300);
            setContentPane(getUIDialogContentPane());
        }
        catch(Throwable ivjExc)
        {
            handleException(ivjExc);
        }
        getButtonToTax().addActionListener(this);
        getUIButtonAllSelect().addActionListener(this);
        getUIButtonAllCancel().addActionListener(this);
        getRootPane().setDefaultButton(getButtonToTax());
    }

    public UFBoolean isUseViaNum()
    {
        if(getUICheckBox().isSelected())
            return new UFBoolean(true);
        else
            return new UFBoolean(false);
    }

    public void keyPressed(KeyEvent e)
    {
        int keyCode = e.getKeyCode();
        int modifiers = e.getModifiers();
        String so = (new StringBuilder()).append("====keypress, keyCode is ").append(keyCode).append(" / modifiers is ").append(modifiers).toString();
        System.out.println(so);
        try
        {
            if(keyCode == 120 && modifiers == 0)
            {
                InvoiceOutToTxt invoiceOTT = new InvoiceOutToTxt();
                invoiceOTT.outputInvoice(getSaleIVO(), isUseViaNum(), rpAudit.getRefName(), rpPay.getRefName());
            }
        }
        catch(Exception ex)
        {
            ex.printStackTrace();
            System.out.println(ex.getMessage());
        }
    }

    public void keyReleased(KeyEvent keyevent)
    {
    }

    public void keyTyped(KeyEvent keyevent)
    {
    }

    public static void main(String args[])
    {
        try
        {
            TransTaxDLG aTransTaxDLG = new TransTaxDLG();
            aTransTaxDLG.setModal(true);
            aTransTaxDLG.addWindowListener(new WindowAdapter() {

                public void windowClosing(WindowEvent e)
                {
                    System.exit(0);
                }

            });
            aTransTaxDLG.show();
            Insets insets = aTransTaxDLG.getInsets();
            aTransTaxDLG.setSize(aTransTaxDLG.getWidth() + insets.left + insets.right, aTransTaxDLG.getHeight() + insets.top + insets.bottom);
            aTransTaxDLG.setVisible(true);
        }
        catch(Throwable exception)
        {
            System.err.println("nc.ui.pub.beans.UIDialog \u7684 main() \u4E2D\u53D1\u751F\u5F02\u5E38");
            exception.printStackTrace(System.out);
        }
    }

    public void onAllCancel(ActionEvent actionEvent)
    {
        for(int i = 0; i < getBillCardPanel().getBodyPanel().getTableModel().getRowCount(); i++)
            getBillCardPanel().setBodyValueAt(new UFBoolean(false), i, "bselected");

    }

    public void onAllSelect(ActionEvent actionEvent)
    {
        for(int i = 0; i < getBillCardPanel().getBodyPanel().getTableModel().getRowCount(); i++)
            getBillCardPanel().setBodyValueAt(new UFBoolean(true), i, "bselected");

    }

    public void setBodyItemsCombox()
    {
        try
        {
            String invoiceType[][] = SaleinvoiceBO_Client.getInvoiceType();
            UIComboBox comHead = (UIComboBox)getBillCardPanel().getBodyItem("finvoicetype").getComponent();
            comHead.setTranslate(true);
            getBillCardPanel().getBodyItem("finvoicetype").setWithIndex(true);
            for(int i = 0; i < invoiceType.length; i++)
                comHead.addItem(invoiceType[i][1]);

            UIComboBox comHeadItem = (UIComboBox)getBillCardPanel().getBodyItem("fstatus").getComponent();
            getBillCardPanel().getBodyItem("fstatus").setWithIndex(true);
            comHeadItem.setTranslate(true);
            comHeadItem.addItem("");
            comHeadItem.addItem(NCLangRes.getInstance().getStrByID("SCMCOMMON", "UPPSCMCommon-000340"));
            comHeadItem.addItem(NCLangRes.getInstance().getStrByID("common", "UC001-0000027"));
            comHeadItem.addItem("");
            comHeadItem.addItem("");
            comHeadItem.addItem(NCLangRes.getInstance().getStrByID("common", "UC001-0000005"));
            BillItem fcounteractflag = getBillCardPanel().getBillModel().getItemByKey("fcounteractflag");
            UIComboBox comCont = (UIComboBox)fcounteractflag.getComponent();
            fcounteractflag.setWithIndex(true);
            comCont.setTranslate(true);
            comCont.addItem(NCLangRes.getInstance().getStrByID("40060501", "UPP40060501-000156"));
            comCont.addItem(NCLangRes.getInstance().getStrByID("40060501", "UPP40060501-000157"));
            comCont.addItem(NCLangRes.getInstance().getStrByID("40060501", "UPP40060501-000158"));
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
    }

    public void setBodyItemsShow()
    {
        try
        {
            getBillCardPanel().getBillModel().execLoadFormula();
            getBillCardPanel().showBodyTableCol("fstatus");
            String hideCols[] = {
                "ccustomerid", "cdeptid", "cemployeeid", "ctermprotocolid", "csalecorpid", "creceiptcorpid", "creceiptcustomerid", "ccalbodyid", "cfreecustid", "coperatorid", 
                "capproveid"
            };
            for(int i = 0; i < hideCols.length; i++)
                getBillCardPanel().hideBodyTableCol(hideCols[i]);

        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
    }

    public void setSaleIVO(SaleinvoiceVO newSaleIVO[])
    {
        saleIVOs = newSaleIVO;
    }

    private UICheckBox getUICheckBox2()
    {
        if(UICheckBox == null)
        {
            UICheckBox = new UICheckBox();
            UICheckBox.setText(NCLangRes.getInstance().getStrByID("40060501", "UPP40060501-000144"));
            UICheckBox.setHorizontalAlignment(10);
            UICheckBox.setHorizontalTextPosition(11);
            UICheckBox.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
            UICheckBox.setPreferredSize(new Dimension(150, 17));
        }
        return UICheckBox;
    }

    private UIButton m_btToTax;
    private JPanel ivjUIDialogContentPane;
    private UIPanel m_pnlTransTax;
    private SaleinvoiceVO saleIVOs[];
    private UICheckBox ivjUICheckBox;
    private SaleInvoiceListPanel ivjBillListPanel;
    private String m_corppk;
    private String m_userid;
    private BillItem listHeadItems[];
    private BillCardPanel ivjBillCardPanel;
    private BillData m_bd;
    private UIButton ivjUIButtonAllSelect;
    private UIButton ivjUIButtonAllCancel;
    private UFBoolean SA_02;
    private Integer BD505;
    protected Hashtable hsparas;
    public ClientEnvironment ce;
    private UICheckBox UICheckBox;
    private UFBoolean bCombinByInv;
    private UILabel lbAudit;
    private UILabel lbPay;
    private UIRefPane rpAudit;
    private UIRefPane rpPay;
}

